
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %>

<%
    BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Upload Event</title>
    </head>
    <body>        
        <form action="<%= blobstoreService.createUploadUrl("/event/create") %>" method="post" enctype="multipart/form-data">
            <table>
                <tr>	
                    <td>Action</td>
                    <td><input type="text" name="action" value="create"/></td>
                </tr>
                <tr>	
                    <td>UID</td>
                    <td><input type="text" name="uid" value="polarlab@gmail.com"/></td>
                </tr>
                <tr>	
                    <td>Event Type</td>
                    <td><input type="text" name="type" value="1"/></td>
                </tr>
                <tr>	
                    <td>Name</td>
                    <td><input type="text" name="name" value="Im Event"/></td>
                </tr>
                <tr>	
                    <td>Brief</td>
                    <td><TEXTAREA NAME="brief" COLS=40 ROWS=6>大家好</TEXTAREA></td>
                </tr>                 
                <tr>	
                    <td>Deadline</td>
                    <td><input type="text" name="deadline" value="2011-7-27 2:50:40"/> 
                    </td>
                </tr>
                <tr>	
                    <td>LimitCount</td>
                    <td><input type="text" name="limitCount" value="20"/></td>
                </tr>
                <tr>	
                    <td>Place</td>
                    <td><input type="text" name="place" value="交通大學"/></td>
                </tr>
                <tr>	
                    <td>X</td>
                    <td><input type="text" name="x" value="300"/></td>
                </tr> 
                 <tr>	
                    <td>Y</td>
                    <td><input type="text" name="y" value="500"/></td>
                </tr>
                <tr>	
                    <td>User X</td>
                    <td><input type="text" name="user_x" value="300"/></td>
                </tr> 
                 <tr>	
                    <td>User Y</td>
                    <td><input type="text" name="user_y" value="500"/></td>
                </tr>
                <tr>	
                    <td>Photo</td>
                    <td><input type="file" name="eventPhoto"/></td>
                </tr>                                                                        
                <tr>
                    <td colspan="2"><input type="submit" /></td>
                </tr>				
            </table>
        </form>
        
        <br><br><br>
        <form method="POST" action="/event">
            <table>
                <tr>	
                    <td>Action</td>
                    <td><input type="text" name="action" value="plus"/></td>
                </tr>
                <tr>	
                    <td>EID</td>
                    <td><input type="text" name="eid" value="11"/></td>
                </tr>                
                <tr>	
                    <td>UID</td>
                    <td><input type="text" name="uid" value="polarlab@gmail.com"/></td>
                </tr>                                                                       
                <tr>
                    <td colspan="2"><input type="submit" /></td>
                </tr>				
            </table>
        </form>
    </body>
</html>

